/**
 * Created by Administrator on 2017/7/20.
 */
const webpack = require('webpack')
const rm = require('rimraf')
const path = require('path')
const webpack_config = require('./webpack.conf.js')
rm(path.resolve(__dirname, '../dist/*'), function (err) {
  if (err) throw err
  webpack(webpack_config, function (err, stats) {
    if (err) throw err
    console.log("build --- ok")
  })
})
